package com.zyh.scs.admin.api.constant;

/**
 * 泛微同步枚举
 * @@author hwh
 */
public enum CodeSet {
	SUCCESS_CODE(100000, "成功"),
	PARAM_INVALID(100001, "参数错误"),
	PARAM_DATE_INVALID(100002, "时间参数解析错误"),
	PARAM_USER_INVALID(100003, "用户授权失败"),
	USER_NOT_ALLOW(100004, "用户无此权限"),
	USER_IS_NOT_LOGIN(100005,"token为空"),
	USER_TOKEN_INVALID(100006,"无效token"),
	SYSTEM_ERR_CODE(999999, "系统处理失败"),

	// 用户
	USER_INFO_NOT_EXISTS(120001, "用户不存在"),
	USER_PERMISSION_DENY(100007,"用户无权限"),


	;
    

	private final Integer code;
	private final String codeName;

	CodeSet(Integer code, String codeName) {
		this.code = code;
		this.codeName = codeName;
	}

	public Integer getCode() {
		return code;
	}

	public String getCodeName() {
		return codeName;
	}
}
